<template>
  <!-- Guide to Seeing a Doctor in Japan -->
  <div class="guide">
    <div style="border-bottom: 1px solid #CBD1D7;">
      <div class="title">Guide to Seeing a Doctor in Japan</div>
    </div>
    <div class="guide_list">
      <div class="guide_card" v-for="(item,index) in japanNewslist" :key="index">
        <div class="guide_title">{{ item.name }}</div>
        <div class="guide_content">{{ item.description }}</div>
        <div class="guide_info">
          <div class="source">Article Source : {{ item.authorSource }} &emsp; views: {{ item.pageviews }}</div>
          <div class="source">{{ item.updateTime }}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:['japanNewslist']
}
</script>

<style lang="scss" scoped>
.guide{
  width: 824px;
  .title{
    font-weight: bold;
    font-size: 18px;
    color: #0041A3;
    line-height: 62px;
    border-bottom: 4px solid #0041A3;
    width: fit-content;
  }
  .guide_list{
    margin-top: 16px;
    .guide_card{
      border-bottom: 1px solid rgba(203,209,215,0.4);
      margin-bottom: 24px;
      padding-bottom: 16px;
      .guide_title{
        font-weight: bold;
        font-size: 18px;
        color: #2E343E;
        line-height: 28px;
        // 超出....
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        width: 780px;
        cursor: pointer;
      }
      .guide_content{
        font-weight: 400;
        font-size: 16px;
        color: #616469;
        line-height: 28px;
        margin-top: 8px;
         // 超出....
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        cursor: pointer;
      }
      .guide_info{
        display: flex;
        justify-content: space-between;
        margin-top: 8px;
        .source{
          font-weight: 400;
          font-size: 12px;
          color: #8A95A2;
          line-height: 24px;
        }
      }
    }
  }
}
</style>